Skip to content

Check refresh token on startup#1274

Merged
dajimenezriv-internxt merged 8 commits intofeat/2-6-6-releasefrom
check-refresh-token-on-startup
Feb 11, 2026
Merged

Check refresh token on startup#1274
dajimenezriv-internxt merged 8 commits intofeat/2-6-6-releasefrom
check-refresh-token-on-startup

Conversation

@dajimenezriv-internxt
Copy link
Contributor

@dajimenezriv-internxt dajimenezriv-internxt commented Feb 11, 2026

What

Ticket https://inxt.atlassian.net/browse/PB-5870.

  1. Remove refresh request when we start the app and just check the token expiration time.
  2. Remove the check of available encryption since on windonws the encryption is always available. (https://www.electronjs.org/docs/latest/api/safe-storage#safestorageisencryptionavailable)

const isSafeStorageAvailable = safeStorage.isEncryptionAvailable();

const token = isSafeStorageAvailable ? ecnryptToken(newToken) : newToken;
const token = ecnryptToken(newToken);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the encryption is not available, wouldn't this break?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On windonws the encryption is always available. (electronjs.org/docs/latest/api/safe-storage#safestorageisencryptionavailable)

@dajimenezriv-internxt dajimenezriv-internxt merged commit 7ec8f65 into feat/2-6-6-release Feb 11, 2026
4 of 5 checks passed
@dajimenezriv-internxt dajimenezriv-internxt deleted the check-refresh-token-on-startup branch February 11, 2026 17:14
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
77.4% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants